#import <Foundation/Foundation.h>
#import "SynthesizeSingleton.h"

@interface FileManager : NSObject {
}
SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(FileManager);

//公用方法
- (NSString *)getPathInCache:(NSString *)path; //获取文件路径，如果没有则创建
- (BOOL)imageExsit:(NSString *)filename andFolder:(NSString *)folder;  //查找文件是否存在

//保存gif到本地
- (BOOL)saveGif:(NSData *)gifImgData withUrl:(NSString *)url;

//编辑推荐图片系列操作
- (NSString *)saveTopicDetailImg:(NSData *)imageData withUrl:(NSString *)url;
- (BOOL)deleteFile:(NSString *)filename;
- (void)deleteAllFiles;

//欢迎页图片系列操作
- (NSArray *)scanLocalSplashImages;
- (NSString *)saveSplashImage:(NSData *)imageData withUrl:(NSString *)url;
- (BOOL)deleteWelcomeFile:(NSString *)filename ;

@end
